package util;

public class Protocol 
{
	public Protocol()
	{
		
	}
	
	public String getRegisterInformation(String information)
	{
		String instruction = "Register:";
	    String massage = instruction + information;
	    return massage;
	}
	
	public String getLogInInformation(String information)
	{
		String instruction = "LogIn:";
	    String massage = instruction + information;
	    return massage;
	}
	
	public String getToFriendmassage(String information)
	{
		String instruction = "SendMassage:";
	    String massage = instruction + information ;
	    return massage;
	}
	
	public String getAddFriendMessage(String nickname,String friendID)
	{
		String instruction = "AddFriend:";
	    String massage = instruction + nickname + "," + friendID;
	    return massage;
	}
	
	public String getOfflineMassage(String nickname) 
	{
		String instruction = "GetOfflineMessage:";
		String message = instruction + nickname;
		return message;
	}
	
	public String backOfflineMassageOk(String nickname) 
	{
		String instruction = "offlinemassageok:";
		String message = instruction + nickname;
		return message;
	}
	
	public String getAddFriendOkMessage(String nickname,String friendID)
	{
		String instruction = "AddFriendOk:";
	    String massage = instruction + nickname + "," + friendID;
	    return massage;
	}
	
	public String getAddFriendNoMessage(String nickname,String friendID)
	{
		String instruction = "AddFriendNo:";
	    String massage = instruction + nickname + "," + friendID;
	    return massage;
	}
	
}
